package ;
import nape.Config;
import nape.Const;
import nape.dynamics.Arbiter;
import nape.dynamics.Contact;
import nape.geom.AABB;
import nape.geom.Axis;
import nape.geom.Mat23;
import nape.geom.Vec2;
import nape.geom.VecMath;
import nape.phys.Material;
import nape.shape.Circle;
import nape.shape.Polygon;
import nape.shape.Shape;
import nape.util.FastMath;
import nape.util.MixPool;
import nape.util.Names;
import nape.util.NpAlgorithm;
import nape.util.NpList;
import nape.util.NpNode_ZNContact;
import nape.util.NpAllocList_ZNContact;
import nape.util.NpNode_ZNV2;
import nape.util.NpList_ZNV2;
import nape.util.NpNode_Vec2__Dynamic;
import nape.util.NpList_Vec2__Dynamic;
import nape.util.NpNode_ZNShp;
import nape.util.NpList_ZNShp;





class DummyNapeMain {
    static function main() {
        
        var p = new Polygon([
            new Vec2(0,0), new Vec2(100,0), new Vec2(100,100), new Vec2(0,100)
        ]);
        
        trace([p.area,p.inertia,p.angDragCoef,p.localCOM]);
        
        var verts = p.localVertices;
        for(i in 0...verts.length) {
            trace(verts.at(i));
            verts.at(i).y += Math.random()*20;
        }
        
        var axi = p.axi;
        for(i in 0...axi.length) {            
            trace(axi.at(i).localNormal);
            verts.at(i).x += 10*Math.random();
        }
    }
}
